import httpRequest from '@/utils/request'
export const GetAddCart = (
  goodsId,
  goodsName,
  goodsNum,
  productId,
  status = 1,
  warrantyServiceId = 0,
  cartType = 0
) => {
  return httpRequest({
    url: '/api/app/happinesswebsite/goodscart/saveGoodsCat',
    method: 'POST',
    data: {
      goodsId,
      goodsName,
      goodsNum,
      productId,
      status,
      warrantyServiceId,
      cartType
    },
    arr: [
      'goodsId',
      'goodsName',
      'goodsNum',
      'productId',
      'status',
      'cartType'
    ],
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}
